package com.ojoin.trade.common.web.quartz;

import org.quartz.SchedulerException;
import org.quartz.listeners.SchedulerListenerSupport;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.ojoin.trade.common.utils.LogUtils;

public class QuartzExceptionSchedulerListener extends SchedulerListenerSupport{
 	private Logger logger = LoggerFactory.getLogger(QuartzExceptionSchedulerListener.class);
	@Override
 	public void schedulerError(String message, SchedulerException e) {
 		super.schedulerError(message, e);
 		LogUtils.error(logger, e.getUnderlyingException(),message);
 	}
}
